package com.zfei.gfb.model;

import java.io.Serializable;
import java.util.Objects;

/**
 * @author heyueling
 */
public class StatsEntity implements Serializable {

    /**
     * pk
     */
    private Long pk;

    /**
     * 统计ID
     */
    private String id;

    /**
     * 统计标签
     */
    private String tag;

    /**
     * 统计数量
     */
    private Long num;

    /**
     * 创建时间
     */
    private Long createTime;

    /**
     * 更新时间
     */
    private Long updateTime;

    public Long getPk() {
        return pk;
    }

    public void setPk(Long pk) {
        this.pk = pk;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    public Long getNum() {
        return num;
    }

    public void setNum(Long num) {
        this.num = num;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public Long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        StatsEntity stats = (StatsEntity) o;
        return Objects.equals(id, stats.id) &&
                Objects.equals(tag, stats.tag);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, tag);
    }
}
